package com.bdqn.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bdqn.entity.Module;

public interface ModuleMapper {
	
	public List<Module> getAllModuleByRoleId(int ROLE_ID);
	
	public List<Module> getAllModule();

	
	public int delModuleRoleId(int rid);
		
	
	public int addModuleRole(@Param("rid") int rid,@Param("mids") List<String> mids);
	
	
	public List<Module> findAllMoudle(String qname);

	public Module findMoudleById(long id);

	public List<Module> findModuleByRoleId(long rid);

	public boolean addMoudle(Module module);

	public boolean updateMoudle(Module module);

	public boolean dellMoudle(long id);

}
